package cn.webrx;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

public class Str5 {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s1 = "ok中国人";
        //5个字符
        System.out.println(s1.length());
        //utf-8 字节个数 11
        System.out.println(s1.getBytes().length);


    }
}
